package com.yc.ioc.bean4_ioc_import;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zwei
 * @create 2024-07-29 8:55
 */
public class App3_importBeanDefinition {
    public static void main(String[] args) {
        ApplicationContext ac=new AnnotationConfigApplicationContext(AppConfig_3.class);
        String[] names=ac.getBeanDefinitionNames();
        for (String name:names) {
            System.out.println(name);
        }
    }
}
